package com.nexus.core.sys.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.nexus.core.query.annotation.QueryCondition;
import com.nexus.core.query.annotation.QueryType;
import com.nexus.core.service.dto.BaseDTO;
import com.nexus.core.service.dto.TreeDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 组织机构
 *
 * @Date 2025/7/28 15:08
 * @Author Administrator
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class SysOrgDTO extends TreeDTO<SysOrgDTO> {
    /**
     * 机构地址
     */
    @ExcelProperty("机构地址")
    @QueryCondition(tableField = "address", type = QueryType.EQ)
    private String address;
    /**
     * 联系人
     */
    @ExcelProperty("联系人")
    @QueryCondition(tableField = "contact", type = QueryType.EQ)
    private String contact;
    /**
     * 电话
     */
    @ExcelProperty("电话")
    @QueryCondition(tableField = "phone", type = QueryType.EQ)
    private String phone;
    /**
     * 邮箱
     */
    @ExcelProperty("邮箱")
    @QueryCondition(tableField = "email", type = QueryType.EQ)
    private String email;
    /**
     * 归属区域
     */
    @ExcelProperty("归属区域")
    @QueryCondition(tableField = "area", type = QueryType.EQ)
    private String area;
    /**
     * 机构类型
     */
    @ExcelProperty("机构类型")
    @QueryCondition(tableField = "type", type = QueryType.EQ)
    private String type;
    /**
     * 机构等级
     */
    @ExcelProperty("机构等级")
    @QueryCondition(tableField = "grade", type = QueryType.EQ)
    private String grade;
    /**
     * 是否启用
     */
    @ExcelProperty("是否启用")
    @QueryCondition(tableField = "enable", type = QueryType.EQ)
    private Boolean enable;
}